package router

import (
	"YingShop/controller"
	"YingShop/middleware"

	"github.com/gin-gonic/gin"
)

func LoadUserRoute(e *gin.Engine) {
	shopUserRouteGroup := e.Group("/user")
	shopUserRouteGroup.Use(middleware.LoginMiddleWare())
	shopUserRouteGroup.GET("/:userId", controller.ShopUserController{}.Get)
	shopUserRouteGroup.GET("/getOrderList", controller.ShopUserController{}.GetOrderList)
}
